﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RegisterUserControl.ascx.cs" Inherits="Aandelendelen.Controls.RegisterUserControl" %>
<%@ Register Src="DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="uc1" %>

<asp:Panel ID="Panel1" runat="server" CssClass="common">

	<p class="title">Inschrijven</p>

	<table>
		<tr>
			<td>
				<asp:Label ID="Label1" runat="server" Text="Voorletters"></asp:Label></td>
			<td>
				<asp:TextBox ID="tbVoorletters" runat="server"></asp:TextBox></td>
			<td>
				<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbVoorletters" CssClass="error" Display="Dynamic">Verplicht veld</asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td>
				<asp:Label ID="Label2" runat="server" Text="Tussenvoegsel"></asp:Label></td>
			<td>
				<asp:TextBox ID="tbTussenvoegsel" runat="server"></asp:TextBox></td>
			<td>
			</td>
		</tr>
		<tr>
			<td>
				<asp:Label ID="Label3" runat="server" Text="Achternaam"></asp:Label></td>
			<td>
				<asp:TextBox ID="tbAchternaam" runat="server"></asp:TextBox></td>
			<td>
				<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbAchternaam"
					CssClass="error" Display="Dynamic">Verplicht veld</asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td>
				<asp:Label ID="Label4" runat="server" Text="Woonplaats"></asp:Label></td>
			<td>
				<asp:TextBox ID="tbWoonplaats" runat="server"></asp:TextBox></td>
			<td>
				<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbWoonplaats"
					CssClass="error" Display="Dynamic">Verplicht veld</asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td>
				<asp:Label ID="Label5" runat="server" Text="Geslacht"></asp:Label></td>
			<td>
				<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
					<asp:ListItem Value="1" Selected="True">Man</asp:ListItem>
					<asp:ListItem Value="0">Vrouw</asp:ListItem>
				</asp:RadioButtonList>
			</td>
			<td>
			</td>
		 </tr>
		 <tr>
			<td>
				<asp:Label ID="Label6" runat="server" Text="Geboortedatum"></asp:Label></td>
			<td><uc1:DatePickerControl ID="DatePickerControl1" runat="server" ShowDay="true" /></td>    
			 <td>
				 <asp:Label ID="lblDateOfBirthError" runat="server" CssClass="error" ForeColor="Red"></asp:Label></td>
		</tr>
		<tr>
			<td>
				<asp:Label ID="Label7" runat="server" Text="Email"></asp:Label></td>
			<td>
				<asp:TextBox ID="tbEmail" runat="server"></asp:TextBox></td>
			<td>
				<asp:CustomValidator ID="CustomValidator4" runat="server" ControlToValidate="tbEmail"
					CssClass="error" Display="Dynamic" OnServerValidate="CustomValidator4_ServerValidate"
					ValidateEmptyText="True">Geen correct emailadres</asp:CustomValidator></td>
		</tr>
		<tr>
			<td>
				<asp:Label ID="Label8" runat="server" Text="*Rekeningnummer"></asp:Label></td>
			<td>
				<asp:TextBox ID="tbRekeningnummer" runat="server" MaxLength="10"></asp:TextBox></td>
			<td><span style="font-size:10px;">* U hoeft uw rekeningnummer nog niet in te vullen.<br />Dit is pas nodig als u uw saldo laat uitbetalen.</span>
				</td>
		</tr>
		<tr>
			<td>
				<asp:Label ID="Label9" runat="server" Text="Gebruikersnaam"></asp:Label></td>
			<td>
				<asp:TextBox ID="tbGebruikersnaam" runat="server" MaxLength="16"></asp:TextBox></td>
			<td>
				<asp:CustomValidator ID="CustomValidator1" runat="server" Display="Dynamic" ControlToValidate="tbGebruikersnaam" CssClass="error" OnServerValidate="CustomValidator1_ServerValidate" ValidateEmptyText="True">Gebruikersnaam is minimaal 6 en maximaal 16 posities</asp:CustomValidator></td>
		</tr>
		<tr>
			<td>
				<asp:Label ID="Label10" runat="server" Text="Wachtwoord"></asp:Label></td>
			<td>
				<asp:TextBox ID="tbWachtwoord" runat="server" MaxLength="8" TextMode="Password"></asp:TextBox></td>
			<td>
				<asp:CustomValidator ID="CustomValidator2" runat="server" Display="Dynamic" ControlToValidate="tbWachtwoord" CssClass="error" OnServerValidate="CustomValidator2_ServerValidate" ValidateEmptyText="True">Wachtwoord is minimaal 6 posities</asp:CustomValidator></td>
		</tr>
		<tr>
			<td>
				<asp:Label ID="Label11" runat="server" Text="Wachtwoord nogmaals"></asp:Label></td>
			<td>
				<asp:TextBox ID="tbWachtwoordNogmaals" runat="server" MaxLength="8" TextMode="Password"></asp:TextBox></td>
			<td>
				<asp:CustomValidator ID="CustomValidator3" runat="server" Display="Dynamic" ControlToValidate="tbWachtwoordNogmaals" CssClass="error" OnServerValidate="CustomValidator3_ServerValidate" ValidateEmptyText="True">Wachtwoord is minimaal 6 posities</asp:CustomValidator></td>
		</tr>
		<tr>
			<td></td>
			<td><asp:CheckBox ID="CheckBox1" runat="server" /><span>Ik ga akkoord met&nbsp;</span><a class="common" href="/UI/Forms/Conditions.aspx" target="_blank">de voorwaarden.</a></td>
			<td>
                <asp:Label ID="lblConditionCheckboxError" runat="server" CssClass="error" ForeColor="Red"></asp:Label></td>
		</tr>		
		<tr>
			<td></td>
			<td>
				<br />
				<asp:Button ID="Button1" runat="server" Text="Verstuur" />
			</td>
			<td></td>
		</tr>
	</table>
</asp:Panel>
